/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.view.main;

import java.util.ArrayList;
import java.util.List;
import org.jfonia.view.elements.IElement;

/**
 *
 * @author Rik Bauwens
 */
public class ClipBoard
{
        private static ClipBoard instance;

        private Object data;

        private ClipBoard()
        {

        }

        public static synchronized ClipBoard getInstance()
        {
                if(instance == null)
                        instance = new ClipBoard();
                return instance;
        }

        public Object getData()
        {
                return data;
        }

        public void setData(Object data)
        {
                clear();
                this.data = data;
        }

        private void clear()
        {
                data = null;
        }

}
